get Font Info
Returns the names, weight, style, variation axes and OpenType features of a font file. The call loads the font when it is not loaded yet. The result describes the default instance of a variable font, and the call ignores a fragment that names axis values, such as #wght=700. Use the result to register an uploaded font on a typeface asset source.
Cancelling the coroutine stops the download of the font.
Return
the font info.
Parameters
font File Uri
the URI of a TTF, OTF, WOFF or WOFF2 file.
Throws
with EDITOR.FONT_LOAD_FAILED when the file does not load, and with EDITOR.FONT_INFO_EXTRACT_FAILED when the file is not a font.